a = float(input())
b = float(input())
c = float(input())
d = float(input())

ans = ((a - c) ** 2 + (b - d) ** 2)
print(ans ** 0.5)